import request from '@/utils/request'
// 类目-列表
export const getList = (params) => {
  return request({
    url: `category/list`,
    method: 'get',
    params
  })
}
// 类目-详情
export const getDetail = (params) => {
  return request({
    url: `category/detail`,
    method: 'post',
    params
  })
}
// 类目-删
export const getDelete = (id) => {
  return request({
    url: '/category',
    method: 'delete',
    data:id
  })
}
// 类目-改
export const getUpdate = (data) => {
  return request({
    url: '/category',
    method: 'put',
    data
  })
}
// 建筑物-增
export const getAdd = (data) => {
  return request({
    url: '/category',
    method: 'post',
    data
  })
}

export default { getList, getDetail, getDelete, getUpdate, getAdd }